package com.bx.implatform.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author: yufeng
 * @date: 2024-02-20
 * @description:
 */
@Data
@ApiModel("通讯记录VO")
public class CallRecordVo {

    @ApiModelProperty(value = " 记录id")
    private Long id;

    @ApiModelProperty(value = " 拔打方用户id")
    private Long sendId;

    @ApiModelProperty(value = " 接听方用户id")
    private Long receiveId;

    @ApiModelProperty(value = " 拨打类型")
    private String callType;

    @ApiModelProperty(value = "接打状态")
    private String callStatus;

    @ApiModelProperty(value = " 接打时长")
    private String callMins;

    @ApiModelProperty(value = " 创建时间")
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
//    @JsonSerialize(using = DateToLongSerializer.class)
    private Date createdTime;

    //===========通话记录查询列表, 返回参数=============

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "用户手机号")
    private String phoneNum;

    @ApiModelProperty(value = "所属企业")
    private String enterprise;

    //==========与个人通话记录================
    @ApiModelProperty(value = "通话时间-时间戳格式")
    private Long dateStamp;

}
